package com.lhd.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.lhd.mapper.Gd3Mapper;
import com.lhd.service.Gd3Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Gd3ServiceImp implements Gd3Service {

    @Autowired
    Gd3Mapper gd3Mapper;

    @Override
    public List<JSONObject> getShopMetrics(Integer date) {
        return gd3Mapper.shopMetrics(date);
    }

    @Override
    public List<JSONObject> getGoodsMetrics(Integer date) {
        return gd3Mapper.goodsMetrics(date);
    }

    @Override
    public List<JSONObject> getZhMetrics(Integer date) {
        return gd3Mapper.zhMetrics(date);
    }

    @Override
    public List<JSONObject> getTypeUv(Integer date) {
        return gd3Mapper.typeUv(date);
    }

    @Override
    public List<JSONObject> getPageAnalysis(Integer date) { return gd3Mapper.pageAnalysis(date); }

    @Override
    public List<JSONObject> getPageSource(Integer date) {
        return gd3Mapper.pageSource(date);
    }

    @Override
    public List<JSONObject> getKeyWord(Integer date) {
        return gd3Mapper.keyWord(date);
    }

    @Override
    public List<JSONObject> getGoodsUv(Integer date) { return gd3Mapper.goodsUv(date); }
}
